﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VS.Web
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Page_Init(object sender, EventArgs e)
        {
            string module = Page.RouteData.Values["module"] as string;
            string region = Page.RouteData.Values["region"] as string;
            string view = Page.RouteData.Values["view"] as string;
            string parameters = Page.RouteData.Values["parameters"] as string;

            if (!string.IsNullOrEmpty(module) && !string.IsNullOrEmpty(region) && !string.IsNullOrEmpty(view) && !string.IsNullOrEmpty(parameters))
                Response.Write("<script type=text/javascript>window.location.hash='#navigate';</script>");
        }
    }
}